import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/data'
  },
  {
    path: '/data',
    name: 'dataSearch',
    component: () => import( '../views/dataSearch/index.vue')
  },
  {
    path: '/task',
    name: 'task',
    component: () => import( '../views/task/index.vue')
  },
  {
    path: '/analysis',
    name: 'analysis',
    component: () => import( '../views/analysis/index.vue')
  },
  {
    path: '/translationCenter',
    name: 'translationCenter',
    component: () => import( '../views/translationCenter/index.vue')
  },
  {
    path: '/translationResults',
    name: 'translationResults',
    component: () => import( '../views/translationResults/index.vue')
  },
];

const router = new VueRouter({
  routes
});

export default router
